<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script>
    var arr = new Array(100,true,"hello");
    // for(var i=0;i<arr.length;i++){
    //   console.log(arr[i]);
    // }
    // arr.forEach(element => {
    //   console.log(element);
    // });
    // for (var key in arr) {
    //   console.log(arr[key]);
    // }
    // for (var iterator of arr) {
    //   console.log(iterator);
    // }
    // var a = new Array();
    // for(var i=0;i<10;i++){
    //   a[i] = i*i;
    // }
    // console.log(a);
    console.log(arr);
    console.log(arr.push(123));
    console.log(arr);
    arr.unshift("false");
    console.log(arr);
    var c = arr.concat([1,2,3,4,5]);
    console.log(arr);
    console.log(c);
    console.log(c.splice(2,4));    
    console.log(c);    
    console.log(c.slice(2,4));
    c.reverse();
    console.log(c); 
    
  </script>
</head>
<body>
  
</body>
</html>